Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FEATURE] Extensions of Defaults #1797

Closed
@Bibo-Joshi

Description

@Bibo-Joshi

Possible candidates to add to the Defaults concept:

tzinfo

We should use Defauts.tzinfo as default instead of UTC … That would mean:

  • When a job is created without setting tzinfo explicitly, use Defaults.tzinfo
  • When calling JobQueue._put() with a naivewhen, usewhen.replace(tzinfo=defaults.tzinfo)
    This would basically not change the current set up, but just put it under the hood
  • ProbablyMessage.date and all the friends should also usedefaults.tzinfo, so basically everydatetime instance occuring in the lib.

Arguments of Filters

How to make it work: We would need to override those attributes ondispatcher.add_handler somehow. that's pretty much the only time, the filters and the dispatcher can see each other …

Dice.emoji

  • Only relevant afterApi 4.8 #1917. Also discussable, if this really is a good idea, as the emoji attribute ofDice is positional and not optional

ReplyKeyboardMarkup

  • resize_keyboard
  • one_time_keyboard

Redesign ofdefault_quote

Right now,default_quote get's passed from getting updates through all objects, whose attributes have aMessage attribute and is set as attribute inMessage. But as theMessage.reply_* methods only work with a bot anyway, we could just accessMessage.bot.defaults.default_quote.

See#1965

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp