Skip to content

Commit 6b76e18

Browse files
committed
gramscript v1.0.1
1 parent 99c47fd commit 6b76e18

22 files changed

Lines changed: 822 additions & 762 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
*.pyc
22
.idea/
3-
telepot.egg-info/
3+
gramscript.egg-info/
44
dist/
55
experiments/
66
doc/_build/

CHANGELOG.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# telepot changelog
1+
# gramscript changelog
22

33
## 12.7 (2018-05-27)
44

@@ -11,15 +11,15 @@
1111
- Added `parse_mode` to all methods and namedtuples supporting `caption`
1212
- Added `supports_streaming` and `connected_website` to relevant methods and
1313
namedtuples
14-
- Fixed downloading through proxy in `telepot.aio.api` module
14+
- Fixed downloading through proxy in `gramscript.aio.api` module
1515

1616
## 12.5 (2017-11-28)
1717

1818
- Bot API 3.5
1919
- Added method `sendMediaGroup` and namedtuple `InputMediaPhoto` and
2020
`InputMediaVideo`
2121
- Added parameter `provider_data` to method `sendInvoice`
22-
- Better exception handling in `telepot.aio.api` module
22+
- Better exception handling in `gramscript.aio.api` module
2323

2424
## 12.4 (2017-10-19)
2525

@@ -43,7 +43,7 @@
4343
- Bot API 3.3
4444
- Added new fields to namedtuple `Chat`, `Message`, and `User`
4545
- Included `aiohttp.ClientResponseError` in raising `BadHTTPResponse`
46-
- Added package `telepot.text` to help format Markdown and HTML by applying
46+
- Added package `gramscript.text` to help format Markdown and HTML by applying
4747
entities
4848

4949
## 12.2 (2017-08-01)
@@ -97,7 +97,7 @@
9797
## 11.0 (2017-05-09)
9898

9999
- Async version compliant with aiohttp2
100-
- Added `telepot.loop` and `telepot.aio.loop` module. Method `message_loop()` deprecated.
100+
- Added `gramscript.loop` and `gramscript.aio.loop` module. Method `message_loop()` deprecated.
101101
Use class `MessageLoop`, `OrderedWebhook`, or `Webhook` instead.
102102

103103
## 10.5 (2017-03-02)
@@ -137,7 +137,7 @@
137137
- Implemented Gaming Platform stuff
138138
- Added game-related methods, e.g. `sendGame`, `setGameScore`, etc.
139139
- Added game-related namedtuple, e.g. `InlineQueryResultGame`, etc.
140-
- `telepot.glance()` may return content type `game`
140+
- `gramscript.glance()` may return content type `game`
141141
- Added method `getWebhookInfo`
142142
- Added new parameters to some methods, e.g. `caption` for `sendAudio()`, etc.
143143
- Handled `EventNotFound` in `IdleEventCoordinator.refresh()`
@@ -169,7 +169,7 @@ callback query are now possible.
169169
## 8.2 (2016-07-04)
170170

171171
- Handling of callback query still unsatisfactory, a transitional release
172-
- Changed async version to `telepot.aio` to avoid collision with `async` keyword
172+
- Changed async version to `gramscript.aio` to avoid collision with `async` keyword
173173
- Added `CallbackQueryCoordinator` and `CallbackQueryAble` to facilitate transparent handling of `CallbackQuery`
174174
- Added `AnswererMixin` to give an `Answerer` instance
175175
- Added `Timer` to express different timeout behaviors
@@ -195,9 +195,9 @@ callback query are now possible.
195195

196196
- Added HTTP connection pooling (for both traditional and async version). Bot API requests are much speedier.
197197
- Most requests are now done with `urllib3`, moving away from `requests`.
198-
- Added module `telepot.routing` and `telepot.async.routing` to provide common key functions and routing tables for `Router` to use.
198+
- Added module `gramscript.routing` and `gramscript.async.routing` to provide common key functions and routing tables for `Router` to use.
199199
- Removed method `set_key_function` and `set_routing_table` from `Router`. Access instance variable `key_function` and `routing_table` instead.
200-
- Added function `telepot.message_identifier` to extract message identifier for editing messages.
200+
- Added function `gramscript.message_identifier` to extract message identifier for editing messages.
201201
- Added helper class `Editor` to ease editing messages.
202202
- `ChatHandler`, by default, also captures `callback_query` from the same user.
203203
- Added `InlineUserHandler` to capture only inline-related messages.
@@ -218,15 +218,15 @@ callback query are now possible.
218218
- `answerCallbackQuery()`
219219
- `editMessageText()`, `editMessageCaption()`, `editMessageReplyMarkup()`
220220
- To `ChatContext`, added a property `administrator`
221-
- Added `telepot.exception.MigratedToSupergroupChatError`
221+
- Added `gramscript.exception.MigratedToSupergroupChatError`
222222
- Backward-incompatible name changes
223223
- Flavor `normal``chat`
224224
- Method `notifyOnMessage``message_loop`
225225
- Method `messageLoop``message_loop`
226226
- Method `downloadFile``download_file`
227-
- Function `telepot.namedtuple.namedtuple` was removed. Create namedtuples using their constructors directly.
228-
- Function `telepot.glance2` was removed. Use `telepot.glance`.
229-
- Chat messages' content type returned by `telepot.glance`:
227+
- Function `gramscript.namedtuple.namedtuple` was removed. Create namedtuples using their constructors directly.
228+
- Function `gramscript.glance2` was removed. Use `gramscript.glance`.
229+
- Chat messages' content type returned by `gramscript.glance`:
230230
- `new_chat_participant``new_chat_member`
231231
- `left_chat_participant``left_chat_member`
232232

@@ -244,14 +244,14 @@ callback query are now possible.
244244

245245
- Changed `Answerer` interface. Compute function is now passed to method `answer()`, not to the constructor.
246246
- Added parameter `disable_notification` to methods `sendZZZ()`
247-
- Added function `telepot.delegate.per_application()` and `per_message()`
247+
- Added function `gramscript.delegate.per_application()` and `per_message()`
248248
- Used `data` to pass POST parameters to prevent too-long query strings on URL
249249
- Async version support pushed back to Python 3.4.2
250250

251251
## 6.5 (2016-02-21)
252252

253253
- Supports file-like object and filename when sending files
254-
- Moved all exceptions to module `telepot.exception`
254+
- Moved all exceptions to module `gramscript.exception`
255255
- Expanded testing to Python 3.5
256256

257257
## 6.4 (2016-02-16)
@@ -260,30 +260,30 @@ callback query are now possible.
260260
- As an alternative to implementing `Bot.handle(msg)`, you may implement `Bot.on_chat_message(msg)`, `Bot.on_inline_query(msg)`, and `Bot.on_chosen_inline_result(msg)` as needed.
261261
- As an alternative to implementing `ZZZHandler.on_message()`, you may implement `ZZZHandler.on_chat_message(msg)`, `ZZZHandler.on_inline_query(msg)`, and `ZZZHandler.on_chosen_inline_result(msg)` as needed.
262262
- `notifyOnMessage()` and `messageLoop()` accept a dict as callback, routing messages according to flavor.
263-
- Added function `telepot.flavor_router()`, classes `telepot.helper.Router` and `telepot.helper.DefaultRouterMixin`, and their async counterparts to facilitate message routing.
264-
- Many functions in `telepot.delegate` and `telepot.helper` now have aliases in their respective async modules, making imports more symmetric.
263+
- Added function `gramscript.flavor_router()`, classes `gramscript.helper.Router` and `gramscript.helper.DefaultRouterMixin`, and their async counterparts to facilitate message routing.
264+
- Many functions in `gramscript.delegate` and `gramscript.helper` now have aliases in their respective async modules, making imports more symmetric.
265265

266266
## 6.3 (2016-02-06)
267267

268268
- Added `Answerer` class to better deal with inline queries
269-
- Made `telepot.glance()` equivalent to `telepot.glance2()`. Developers are encouraged to use `telepot.glance()` from now on.
270-
- Added `telepot.flance()`, a combination of `telepot.flavor()` and `telepot.glance()`.
269+
- Made `gramscript.glance()` equivalent to `gramscript.glance2()`. Developers are encouraged to use `gramscript.glance()` from now on.
270+
- Added `gramscript.flance()`, a combination of `gramscript.flavor()` and `gramscript.glance()`.
271271

272272
## 6.2 (2016-01-18)
273273

274274
- Handle new field `chosen_inline_result` in Update object
275-
- `telepot.flavor()` returns a new flavor `chosen_inline_result`
276-
- Added `telepot.namedtuple.ChosenInlineResult` class
275+
- `gramscript.flavor()` returns a new flavor `chosen_inline_result`
276+
- Added `gramscript.namedtuple.ChosenInlineResult` class
277277

278278
## 6.1 (2016-01-13)
279279

280280
- Changed normal message's flavor to `normal`
281281

282282
## 6.0 (2016-01-13)
283283

284-
- Moved all namedtuple-related stuff to a new module `telepot.namedtuple`. All calls to the function `telepot.namedtuple()` should be changed to `telepot.namedtuple.namedtuple()`
285-
- Added a function `telepot.flavor()` to differentiate between a normal message and an inline query
286-
- Added `flavor` parameter to `telepot.glance2()` to extract info according to message flavor
284+
- Moved all namedtuple-related stuff to a new module `gramscript.namedtuple`. All calls to the function `gramscript.namedtuple()` should be changed to `gramscript.namedtuple.namedtuple()`
285+
- Added a function `gramscript.flavor()` to differentiate between a normal message and an inline query
286+
- Added `flavor` parameter to `gramscript.glance2()` to extract info according to message flavor
287287
- `notifyOnMessage()` and `messageLoop()` can handle inline query as well as normal chat messages
288288
- Added a few `per_XXX_id()` functions useful for spawning delegates for inline queries
289289
- Added `UserHandler`
@@ -352,7 +352,7 @@ callback query are now possible.
352352

353353
- Conforms to latest Telegram Bot API as of August 29, 2015
354354
- Added `certificate` parameters to `setWebhook()`
355-
- Added `telepot.glance()` and `telepot.namedtuple()`
355+
- Added `gramscript.glance()` and `gramscript.namedtuple()`
356356
- Consolidated all tests into one script
357357

358358
## 1.1 (2015-08-21)

doc/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ qthelp:
9696
@echo
9797
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
9898
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
99-
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/telepot.qhcp"
99+
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/gramscript.qhcp"
100100
@echo "To view the help file:"
101-
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/telepot.qhc"
101+
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/gramscript.qhc"
102102

103103
.PHONY: applehelp
104104
applehelp:
@@ -115,8 +115,8 @@ devhelp:
115115
@echo
116116
@echo "Build finished."
117117
@echo "To view the help file:"
118-
@echo "# mkdir -p $$HOME/.local/share/devhelp/telepot"
119-
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/telepot"
118+
@echo "# mkdir -p $$HOME/.local/share/devhelp/gramscript"
119+
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/gramscript"
120120
@echo "# devhelp"
121121

122122
.PHONY: epub

doc/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
source_suffix = '.rst'
2020
master_doc = 'index'
2121

22-
project = u'telepot'
22+
project = u'gramscript'
2323
year = datetime.now().year
2424
copyright = u'%d, Nick Lee' % year
2525
author = u'Nick Lee'
@@ -41,7 +41,7 @@
4141
'show_powered_by': False,
4242
'fixed_sidebar': True,
4343
'github_user': 'nickoala',
44-
'github_repo': 'telepot',
44+
'github_repo': 'gramscript',
4545
'github_type': 'star',
4646
}
4747
html_static_path = ['_static']
@@ -100,7 +100,7 @@
100100
#html_search_scorer = 'scorer.js'
101101

102102
# Output file base name for HTML help builder.
103-
htmlhelp_basename = 'telepotdoc'
103+
htmlhelp_basename = 'gramscriptdoc'
104104

105105
# -- Options for LaTeX output ---------------------------------------------
106106

@@ -122,7 +122,7 @@
122122
# (source start file, target name, title,
123123
# author, documentclass [howto, manual, or own class]).
124124
latex_documents = [
125-
(master_doc, 'telepot.tex', u'telepot Documentation',
125+
(master_doc, 'gramscript.tex', u'gramscript Documentation',
126126
u'Nick Lee', 'manual'),
127127
]
128128

@@ -152,7 +152,7 @@
152152
# One entry per manual page. List of tuples
153153
# (source start file, name, description, authors, manual section).
154154
man_pages = [
155-
(master_doc, 'telepot', u'telepot Documentation',
155+
(master_doc, 'gramscript', u'gramscript Documentation',
156156
[author], 1)
157157
]
158158

@@ -166,8 +166,8 @@
166166
# (source start file, target name, title, author,
167167
# dir menu entry, description, category)
168168
texinfo_documents = [
169-
(master_doc, 'telepot', u'telepot Documentation',
170-
author, 'telepot', 'One line description of project.',
169+
(master_doc, 'gramscript', u'gramscript Documentation',
170+
author, 'gramscript', 'One line description of project.',
171171
'Miscellaneous'),
172172
]
173173

0 commit comments

Comments
 (0)